package com.example.badyloans.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
    * 贷款标的表
    */
@ApiModel(value="com-example-badyloans-pojo-TBorrow")
public class TBorrow implements Serializable {
    private static final long serialVersionUID = -8109699602770335027L;
    /**
    * id
    */
    @ApiModelProperty(value="id")
    private String id;

    /**
    * 借款人id
    */
    @ApiModelProperty(value="借款人id")
    private String borrowUserId;

    /**
    * 借款人用户名
    */
    @ApiModelProperty(value="借款人用户名")
    private String borrowUsername;

    /**
    * 借款标题
    */
    @ApiModelProperty(value="借款标题")
    private String title;

    /**
    * 借款描述
    */
    @ApiModelProperty(value="借款描述")
    private String description;

    /**
    * 还款类型( 1.等额本息  2.先息后本 )
    */
    @ApiModelProperty(value="还款类型( 1.等额本息  2.先息后本 )")
    private Integer repaymentType;

    /**
    * 借款类型( 1.信用贷 2.车贷 3.房贷 )
    */
    @ApiModelProperty(value="借款类型( 1.信用贷 2.车贷 3.房贷 )")
    private Integer borrowType;

    /**
    * 借款状态(撤销--0，发布审核中--10，发布审核拒绝--11，招标中--20，流标--21，放款审核中--30，放款审核拒绝--31，还款中--40，已还清--50)
    */
    @ApiModelProperty(value="借款状态(撤销--0，发布审核中--10，发布审核拒绝--11，招标中--20，流标--21，放款审核中--30，放款审核拒绝--31，还款中--40，已还清--50)")
    private Integer borrowState;

    /**
    * 借款总金额(单位：分)
    */
    @ApiModelProperty(value="借款总金额(单位：分)")
    private Long borrowAmount;

    /**
    * 年化率
    */
    @ApiModelProperty(value="年化率")
    private Integer yearRate;

    /**
    * 还款期数
    */
    @ApiModelProperty(value="还款期数")
    private Integer repaymentMonth;

    /**
    * 已投标数量
    */
    @ApiModelProperty(value="已投标数量")
    private Integer bidNum;

    /**
    * 总回报金额(单位：分)
    */
    @ApiModelProperty(value="总回报金额(单位：分)")
    private Long totalInterest;

    /**
    * 当前已投标金额(单位：分)
    */
    @ApiModelProperty(value="当前已投标金额(单位：分)")
    private Long currentBidAmount;

    /**
    * 当前已投标利息(单位：分)
    */
    @ApiModelProperty(value="当前已投标利息(单位：分)")
    private Long currentBidInterest;

    /**
    * 招标截止日期
    */
    @ApiModelProperty(value="招标截止日期")
    private LocalDateTime bidDeadline;

    /**
    * 招标天数
    */
    @ApiModelProperty(value="招标天数")
    private Integer bidDays;

    /**
    * 申请时间
    */
    @ApiModelProperty(value="申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applyTime;

    /**
    * 发标时间
    */
    @ApiModelProperty(value="发标时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;

    /**
    * 创建时间
    */
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBorrowUserId() {
        return borrowUserId;
    }

    public void setBorrowUserId(String borrowUserId) {
        this.borrowUserId = borrowUserId;
    }

    public String getBorrowUsername() {
        return borrowUsername;
    }

    public void setBorrowUsername(String borrowUsername) {
        this.borrowUsername = borrowUsername;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getRepaymentType() {
        return repaymentType;
    }

    public void setRepaymentType(Integer repaymentType) {
        this.repaymentType = repaymentType;
    }

    public Integer getBorrowType() {
        return borrowType;
    }

    public void setBorrowType(Integer borrowType) {
        this.borrowType = borrowType;
    }

    public Integer getBorrowState() {
        return borrowState;
    }

    public void setBorrowState(Integer borrowState) {
        this.borrowState = borrowState;
    }

    public Long getBorrowAmount() {
        return borrowAmount;
    }

    public void setBorrowAmount(Long borrowAmount) {
        this.borrowAmount = borrowAmount;
    }

    public Integer getYearRate() {
        return yearRate;
    }

    public void setYearRate(Integer yearRate) {
        this.yearRate = yearRate;
    }

    public Integer getRepaymentMonth() {
        return repaymentMonth;
    }

    public void setRepaymentMonth(Integer repaymentMonth) {
        this.repaymentMonth = repaymentMonth;
    }

    public Integer getBidNum() {
        return bidNum;
    }

    public void setBidNum(Integer bidNum) {
        this.bidNum = bidNum;
    }

    public Long getTotalInterest() {
        return totalInterest;
    }

    public void setTotalInterest(Long totalInterest) {
        this.totalInterest = totalInterest;
    }

    public Long getCurrentBidAmount() {
        return currentBidAmount;
    }

    public void setCurrentBidAmount(Long currentBidAmount) {
        this.currentBidAmount = currentBidAmount;
    }

    public Long getCurrentBidInterest() {
        return currentBidInterest;
    }

    public void setCurrentBidInterest(Long currentBidInterest) {
        this.currentBidInterest = currentBidInterest;
    }

    public LocalDateTime getBidDeadline() {
        return bidDeadline;
    }

    public void setBidDeadline(LocalDateTime bidDeadline) {
        this.bidDeadline = bidDeadline;
    }

    public Integer getBidDays() {
        return bidDays;
    }

    public void setBidDays(Integer bidDays) {
        this.bidDays = bidDays;
    }

    public LocalDateTime getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(LocalDateTime applyTime) {
        this.applyTime = applyTime;
    }

    public LocalDateTime getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(LocalDateTime publishTime) {
        this.publishTime = publishTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", borrowUserId=").append(borrowUserId);
        sb.append(", borrowUsername=").append(borrowUsername);
        sb.append(", title=").append(title);
        sb.append(", description=").append(description);
        sb.append(", repaymentType=").append(repaymentType);
        sb.append(", borrowType=").append(borrowType);
        sb.append(", borrowState=").append(borrowState);
        sb.append(", borrowAmount=").append(borrowAmount);
        sb.append(", yearRate=").append(yearRate);
        sb.append(", repaymentMonth=").append(repaymentMonth);
        sb.append(", bidNum=").append(bidNum);
        sb.append(", totalInterest=").append(totalInterest);
        sb.append(", currentBidAmount=").append(currentBidAmount);
        sb.append(", currentBidInterest=").append(currentBidInterest);
        sb.append(", bidDeadline=").append(bidDeadline);
        sb.append(", bidDays=").append(bidDays);
        sb.append(", applyTime=").append(applyTime);
        sb.append(", publishTime=").append(publishTime);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}